<!DOCTYPE html>
<div class="topbar-wrap topbar-clearfix" style="display: block">
	<a class="login-2017-topbar-logo" href="/admin">
		<img class="black nav_logo" style="z-index: 2;" src="/admin/images/logologo.png">
	</a>

	<div class="topbar-info topbar-right topbar-clearfix">
		<!-- 站内信 -->
		<!--<div class="topbar-notice topbar-left topbar-info-dropdown topbar-info-item">-->
			<!--<a href="#" class="topbar-btn topbar-btn-notice topbar-hover-dark">-->
				<!--<span class="topbar-btn-notice-icon icon-bell"></span>-->
				<!--<span class="topbar-btn-notice-num">2</span>-->
			<!--</a>-->
			<!--<div class="topbar-notice-panel topbar-info-dropdown-memu">-->
				<!--<div class="topbar-notice-arrow"></div>-->
				<!--<div class="topbar-notice-head">-->
					<!--<span>站内消息通知</span>-->
					<!--<a aliyun-console-spm="41" href="#" style="font-size: 13px;float: right;">消息接收管理</a>-->
				<!--</div>-->
				<!--<div class="topbar-notice-body">-->
					<!--<ul>-->
						<!--<li>-->
							<!--<a href="#" target="_blank" class="clearfix">-->
								<!--<span class="inline-block">-->
                 					<!--<span class="topbar-notice-link">......</span>-->
									<!--<span class="topbar-notice-time">2018-07-18 17:02</span>-->
								<!--</span>-->
							<!--</a>-->
						<!--</li>-->
						<!--<li>-->
							<!--<a href="#" target="_blank" class="clearfix">-->
								<!--<span class="inline-block">-->
                 					<!--<span class="topbar-notice-link">......</span>-->
									<!--<span class="topbar-notice-time">2018-07-09 14:25</span>-->
								<!--</span>-->
							<!--</a>-->
						<!--</li>-->
					<!--</ul>-->
				<!--</div>-->
				<!--<div class="topbar-notice-foot">-->
					<!--<a class="topbar-notice-more" target="_blank" href="#" aliyun-console-spm="401">查看更多</a>-->
				<!--</div>-->
			<!--</div>-->
		<!--</div>-->

		<!-- user -->
		<div class="topbar-left topbar-user">
			<div class="topbar-info-dropdown topbar-info-item">
				<a class="topbar-info-dropdown-toggle topbar-btn" id="adminUser">

				</a>
				<div class="topbar-info-dropdown-memu topbar-align-right">
					<div class="topbar-user-entrance-list">

						<a class="topbar-user-entrance" href="javascript:" aliyun-console-spm="600" onclick="user_update_password()">
							<span class="topbar-user-entrance-logo icon-topbar-user-info topbar-sidebar-user-info"></span>
							<span>密码编辑</span>
						</a>

						<!--<a class="topbar-user-entrance" href="javascript:" aliyun-console-spm="601">-->
							<!--<span class="topbar-user-entrance-logo icon-topbar-certify topbar-sidebar-certify"></span>-->
							<!--<span>实名认证</span>-->
						<!--</a>-->
					</div>
					<div>

						<div class="user-btn-list">
							<a class="user-btn-link" href="javascript:" onclick="loginOut()" target="_self"><span>退出管理控制台</span></a>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>
</div>

<script type="text/javascript">
	// 获取管理员登录信息
	$(function () {
        This.jqueryAjax(Service.Api.base.baseUser.adminUser, "", "json", function(data) {
            $("#adminUser").text(data.name);
        });
    })

	function loginOut() {
        Layui.confirm("是否要退出登录？", '', function(layer, index) {
			This.jqueryAjax(Service.api.login.loginOut, "", "json", function(data) {
				if (data.status == 1) {
					location.href = "/login?html=1";
				} else {
					layerMessageOk(data.message);
				}
			});
		});
	}
	
	// 密码编辑
	function user_update_password() {
		popup(Url.creatUrl(Api.base.baseUser.reset_password_view, {tb: 'user', opt: 'user_update_password', html: 1}), "用户密码编辑", "500px", "400px");
	}
</script>